/**
 * @ClassName T2
 * @Description  实现runnable接口
 * @Author ZJX
 * @Date 2025/4/6 21:43
 * @Version 1.0
 **/
public class T2 implements Runnable{
    @Override
    public void run() {
        System.out.println(2);
    }

//    实现runnable接口  重写run方法

    public static void main(String[] args) throws InterruptedException {
        T2 t2 = new T2();
       Thread.sleep(1000);
        System.out.println(1);
    }
}
